package com.example.mapper;
import com.example.pojo.SignIn;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 签到表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-05-12
 */
@Mapper
@Repository
public interface SignInMapper extends BaseMapper<SignIn> {

    /**
     * 根据 登录用户查询打卡记录
     * @param WorkId 员工编号
     */
    List<SignIn> selListBywWorId(@Param("wid") Integer WorkId);

    /**
     * 查询昨天签到次数
     * @param workId 员工编号
     */
    List<SignIn> selSignCount(@Param("wid") Integer workId);

}
